import chinese from '@core/locale/constant_zh_CN.json';
import {Language} from "@app/shared/models/Util";

export default class Locale {
  private _language: Language = Language.Chinese;
  constant: { value: any } = {value: null};

  constructor() {
    this.constant.value = chinese;
  }

  get language() {
    return this._language;
  }

  set language(value: Language) {
    this._language = value;
    switch (this._language) {
      case Language.Chinese:
        this.constant.value = chinese;
        break;
      default:
        this.constant.value = chinese;
        break;
    }
  }
}

